import axios from './axios'

let key = 'b246d3d6954ef868e6b9af454d7ad5c2'
// 通过ip地址查询所在城市
export const getCityByip = ()=>{
    return axios({
        method:'GET',
        url:`/ip?ip=202.103.45.0&key=${key}`
    })
}

// 通过城市名查询adcode
export const getAdcodeBycity = (city)=>{
    return axios({
        url:`/geocode/geo?address=${city}&key=${key}`,
        method:'get',
    })
}